<template>
    <el-drawer :visible.sync="isDetail" direction="rtl" :before-close="handleClose" :show-close="true" size="50%">
        <span>我来啦!</span>
    </el-drawer>
</template>

<script>
export default {
    props: {
        isDetail: {
            type: Boolean,
            default: false
        }
    },
    methods: {
        handleClose(){
            this.$emit("beforeClose")
        }
    }
}
</script>

<style lang="scss">

</style>